import 'package:flutter/material.dart';

import '../compant/Appcolor.dart';
import '../compant/Kbutton.dart';
import 'logAccount.dart';

class Resetlinksent extends StatefulWidget {
  const Resetlinksent({super.key});

  @override
  State<Resetlinksent> createState() => _ResetlinksentState();
}

class _ResetlinksentState extends State<Resetlinksent> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Padding(
        padding: const EdgeInsets.all(30.0),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            Text(
              "Reset link sent",
              style: TextStyle(color: textColor, fontSize: 26),
              textAlign: TextAlign.center,
            ),
            Text(
              "A link has been sent to your email. Click\n the link for reset password",
              style: TextStyle(color: textGaryColor, fontSize: 16),
              textAlign: TextAlign.center,
            ),
            const SizedBox(
              width: double.infinity,
            ),
            Image.asset('assets/image17.png'),
            SizedBox(
              height: 30,
            ),
            SizedBox(
              height: 30,
            ),
            Kbutton(
              ontap: () {
                Navigator.push(context,
                    MaterialPageRoute(builder: (BuildContext context) {
                  return const LogAccount();
                }));
              },
              text: 'Log in',
            ),
            SizedBox(
              height: 20,
            )
          ],
        ),
      ),
    );
  }
}
